home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / basics / show movie / moviestuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.0 KB  |  73 lines

  1. /*
  2.     File:        MovieStuff.h
  3.  
  4.     Contains:        Movie handling routine's headers.
  5.  
  6.     Written by: Jason Hodges-Harris & Don Swatman    
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/17/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __MOVIESTUFF__
  25. #define __MOVIESTUFF__
  26.  
  27. #include <Windows.h>
  28. #include <Types.h>
  29.  
  30. //----------------------------------------------
  31. // Prototypes
  32. //----------------------------------------------
  33.  
  34. OSErr OpenMovieWindow ( WindowPtr pWindow,
  35.                                                 Boolean   doesAutoClose,
  36.                                                 Boolean   hasControler  );
  37.  
  38. OSErr CloseMovieWindow( WindowPtr pWindow,
  39.                                                 WindowPtr *pSlaveWindow  );
  40.  
  41. #define    kStartFromBegining true
  42. #define    kStartAtCurrentPos false
  43.  
  44. OSErr StartMovieWindow( WindowPtr pWindow,
  45.                                                 Boolean   fromBegining  );
  46.                                                 
  47. void UpdateMovieWindow (  WindowPtr pWindow   );
  48.  
  49. Boolean ServiceMovieTasks ( WindowPtr pWindow,
  50.                                                         const EventRecord *theEvent );
  51.  
  52. #define    kInSync 0
  53. #define    kOneThird -1
  54.  
  55. OSErr SetupSlaveMovie ( WindowPtr pMasterWindow,
  56.                                                 WindowPtr pSlaveWindow,
  57.                                                 short     slaveAheadBy,
  58.                                                 short     slaveDelayStart );
  59.  
  60. OSErr SetupMovieRate( WindowPtr pWindow,
  61.                                             short delayBeforeChange  );
  62.  
  63. OSErr SetupLoop ( WindowPtr pWindow,
  64.                                     short loopWhen,
  65.                                     short loopTo  );
  66.  
  67. Boolean IsMoviePlaying (void);
  68.  
  69. void InitMovieGlobals(void);
  70. void KillMovieGlobals(void);
  71.  
  72.  
  73. #endif